import request from '@/utils/request'

export function getQuestionnaireList(data) {
  return request({
    url: '/questionnaire/app/list',
    method: 'post',
    data
  })
}
export function getQuestionnaireRecordDetail(params) {
  return request({
    url: '/questionnaire/app/getRecordDetail',
    method: 'get',
    params
  })
}

export function getQuestionnaireDetail(params) {
  return request({
    url: '/questionnaire/app/getDetail',
    method: 'get',
    params
  })
}

export function creatQuestionnaireRecord(data) {
  return request({
    url: '/questionnaire/app/creatRecord',
    method: 'post',
    data
  })
}

export function getQuestionnaireRecordList(data) {
  return request({
    url: '/questionnaire/app/getRecordList',
    method: 'post',
    data
  })
}
